package com.kdzy.lshy.common.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @Auther: hanrui
 * @Date: 2018-2018/6/16
 * @Description:
 */

@Configuration
@PropertySource(value = "classpath:wechat.properties")
public class WeChatConfig {
    @Value("${appid}")
    private  String appid;
    @Value("${appsecrect}")
    private  String app_secrect;

    @Bean(name="weChat")
    public WeChat getInstance(){
        WeChat wechat = new WeChat(appid,app_secrect);
        return wechat;
    }
}
